package com.kylinhunter.ch.system;

import java.util.Locale;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

import com.kylinhunter.ch.language.ResourceManager;
import com.kylinhunter.ui.common.ResourceManagerAware;

public class CHBeanFactoryPostProcessor  implements BeanFactoryPostProcessor{
	private CHSystem chSystem = null; 
	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory arg0)
			throws BeansException {
		// TODO Auto-generated method stub
		/*if (this.getChSystem().init()) {
			boolean chinese = this.getChSystem().getChConfig().getConfig().isChinese();
			if (chinese) {
				 ResourceManager.getInstance().languageChangedEvent(new Locale("zh", "CN"));

				chinese = true;
			} else {
				 ResourceManager.getInstance().languageChangedEvent(new Locale("en", "US"));
				chinese = false;
			}
		}*/
		
		
	}
	public CHSystem getChSystem() {
		return chSystem;
	}
	public void setChSystem(CHSystem chSystem) {
		this.chSystem = chSystem;
	}
	 
	

}
